package com.ruoyi.client.service.impl;

import com.ruoyi.client.domain.SysBuy;
import com.ruoyi.client.mapper.SysBuyMapper;
import com.ruoyi.client.service.ISysBuyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysBuyServiceImpl implements ISysBuyService {
    @Autowired
    SysBuyMapper sysBuyMapper;
    @Override
    public List<SysBuy> sysBuyList(String symbol) {
        return sysBuyMapper.sysBuyList(symbol);
    }

    @Override
    public void add(SysBuy sysBuy) {
        sysBuyMapper.add(sysBuy);
    }

    @Override
    public SysBuy getSysBuyByPrice(String symbol, String buyPrice) {
        return sysBuyMapper.getSysBuyByPrice(symbol,buyPrice);
    }

    @Override
    public void updateHandsByIds(Integer id, String hands) {
        sysBuyMapper.updateHandsByIds(id,hands);
    }

    @Override
    public List<SysBuy> sysBuyListAll(String symbol) {
        return sysBuyMapper.sysBuyListAll(symbol);
    }


}
